package com.pb.metadata.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author liaohaoyuan
 * 2022.4.3
 */
@Mapper
public interface CalendarMapper {

    /*查询假期数据*/
    List<Map<String,Object>> getHoliday(Map<String, Object> paramMap);

    /*手动设置假期数据*/
    Integer selectHoliday(Map<String, Object> paramMap);

    /* 初始化年份假期数据*/
    void saveHoliday(Map<String, Object> paramMap);

   /*删除节假日*/
    void delteHoliday(Map<String, Object> paramMap);

    /*获取节假日类型*/
    List<Map<String,Object>> getTypeData(Map<String, Object> parama);

    /*保存已初始化节日类型*/
    void savaHolidayInitSigns(Map<String, Object> parama);

    /*初始化周末*/
    void initCapWorkDate(@Param("type")String CODE, @Param("list")List<String> list);

    /*获取初始化的节假日类型*/
    List<Map<String,Object>> getTableData(Map<String, Object> paramMap);

    /*获取码表名称*/
    Map<String,Object> getTableName(Map<String, Object> paramMap);

    /*获取码值*/
    List<Map<String,Object>> getCodeList(Map<String, Object> paramMap);

    /*获取码值*/
    List<Map<String,Object>> getCodeList2(Map<String, Object> paramMap);

}
